.container {
  max-width: 850px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--swm-background);
  color: var(--ifm-font-color-base);
  font-family: var(--swm-body-font);
  text-wrap: pretty;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header h1 {
  font-family: var(--swm-title-font);
  font-weight: var(--swm-heading-font-weight);
  font-size: var(--swm-h1-font-size);
  line-height: var(--swm-h1-line-height);
  letter-spacing: var(--swm-heading-letter-spacing-bigger);
  color: var(--ifm-heading-color);
  margin-bottom: 1.5rem;
}

.subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--swm-navy-light-60);
  margin: 0 auto;
  text-align: center;
}

.features h2 {
  font-family: var(--swm-title-font);
  font-weight: var(--swm-heading-font-weight);
  font-size: var(--swm-h2-font-size);
  line-height: var(--swm-h2-line-height);
  color: var(--ifm-heading-color);
  margin-bottom: 1.5rem;
}

.featureGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.featureCard {
  background: var(--swm-off-background);
  border: 1px solid var(--swm-border);
  padding: 12px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.featureIcon {
  margin-bottom: 8px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featureCard h3 {
  font-family: var(--swm-title-font);
  font-weight: var(--swm-heading-font-weight);
  font-size: 1.25rem;
  color: var(--ifm-heading-color);
  margin-bottom: 0.75rem;
}

.featureCard p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--swm-navy-light-60);
  margin: 0;
}

/* CSS Animation - Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--swm-border);
  border-top-color: var(--swm-purple-light-100);
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* CSS Transition - Color changing box */
.transitionBox {
  width: 40px;
  height: 40px;
  background: var(--swm-purple-light-100);
  border-radius: 8px;
  animation: colorMorph 800ms ease-in-out infinite alternate;
}

@keyframes colorMorph {
  0% {
    background: var(--swm-purple-light-100);
    border-radius: 8px;
    transform: scale(1);
  }
  100% {
    background: var(--swm-green-light-100);
    border-radius: 50%;
    transform: scale(1.1);
  }
}

/* Shared Values - Slider */
.slider {
  width: 50px;
  height: 8px;
  background: var(--swm-border);
  border-radius: 4px;
  position: relative;
}

.sliderThumb {
  width: 16px;
  height: 16px;
  background: var(--swm-purple-light-100);
  border-radius: 50%;
  position: absolute;
  top: -4px;
  left: 0px;
  animation: slideThumb 1.5s ease-in-out infinite alternate;
}

@keyframes slideThumb {
  0% {
    left: 0px;
  }
  100% {
    left: calc(100% - 16px);
  }
}

/* Layout Animations - List items */
.layoutContainer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.layoutItem {
  width: 40px;
  height: 8px;
  background: var(--swm-purple-light-100);
  border-radius: 4px;
  opacity: 1;
}

.layoutItem:nth-child(1) {
  animation: layoutItemMove1 1.5s ease-in-out infinite;
}

.layoutItem:nth-child(2) {
  width: 35px;
  animation: layoutItemFade 1.5s ease-in-out infinite;
}

.layoutItem:nth-child(3) {
  width: 30px;
  animation: layoutItemMove3 1.5s ease-in-out infinite;
}

@keyframes layoutItemMove1 {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-5px);
  }
}

@keyframes layoutItemFade {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0;
    transform: scale(0);
  }
}

@keyframes layoutItemMove3 {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}

.signup {
  background: var(--swm-off-background);
  padding: 2rem;
  border: 1px solid var(--swm-border);
}

.signup h2 {
  font-family: var(--swm-title-font);
  font-weight: var(--swm-heading-font-weight);
  font-size: var(--swm-h2-font-size);
  line-height: var(--swm-h2-line-height);
  color: var(--ifm-heading-color);
  margin-bottom: 1rem;
}

.signup > p {
  font-size: 1.125rem;
  color: var(--swm-navy-light-60);
  margin-bottom: 2rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.errorMessage {
  padding: 1rem;
  background: var(--swm-red-light-20);
  border: 1px solid var(--swm-red-light-80);
  color: var(--swm-red-light-100);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.formGroup {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.formGroup label {
  font-weight: 500;
  color: var(--ifm-font-color-base);
  font-size: 1rem;
}

.input {
  padding: 0.875rem 1rem;
  border: 2px solid var(--swm-border);
  font-size: 1rem;
  font-family: var(--swm-body-font);
  background: var(--swm-background);
  color: var(--ifm-font-color-base);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.input:focus {
  outline: none;
  border-color: var(--swm-purple-light-100);
  box-shadow: 0 0 0 3px var(--swm-purple-light-transparent);
}

.disclaimer {
  font-size: 0.875rem;
  color: var(--swm-navy-light-60);
  font-style: italic;
  margin: 0;
  line-height: 1.5;
}
.buttonContainer {
  display: flex;
  justify-content: center;
  margin: 2rem;
}

.button {
  padding: 1rem 2rem;
  background: var(--swm-purple-light-100);
  color: var(--swm-off-white);
  border: 2px solid transparent;
  font-size: 1.125rem;
  font-weight: 500;
  font-family: var(--swm-title-font);
  cursor: pointer;
  transition: all 0.2s ease;
  align-self: flex-start;
}

.button:hover:not(:disabled) {
  color: var(--swm-purple-light-100);
  border-color: var(--swm-purple-light-100);
  background-color: var(--swm-off-background);
}

.button:disabled {
  background: var(--swm-navy-light-60);
  cursor: not-allowed;
  transform: none;
}

.links h2 {
  font-family: var(--swm-title-font);
  font-weight: var(--swm-heading-font-weight);
  font-size: var(--swm-h2-font-size);
  line-height: var(--swm-h2-line-height);
  color: var(--ifm-heading-color);
  margin-bottom: 1.5rem;
}

.linkList {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.link {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--swm-purple-light-100);
  text-decoration: none;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
  align-self: flex-start;
}

.link:hover {
  color: var(--swm-purple-light-80);
}

.successMessage {
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 2rem;
}

.successMessage h1 {
  margin-bottom: 1rem;
}

.successMessage p {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.successMessage p:last-child {
  margin-bottom: 0;
}

@media (max-width: 996px) {
  .container {
    padding: 1.5rem;
  }

  .header h1 {
    font-size: var(--swm-h3-font-size);
    letter-spacing: var(--swm-heading-letter-spacing-smaller);
  }

  .subtitle {
    font-size: 16px;
  }

  .features h2,
  .signup h2,
  .links h2 {
    font-size: var(--swm-h3-font-size);
  }

  .featureCard {
    padding: 1rem;
  }

  .signup {
    padding: 2rem;
  }

  .linkList {
    gap: 0.75rem;
  }

  .content {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .featureGrid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .featureCard {
    padding: 1.25rem;
  }

  .signup {
    padding: 1.5rem;
  }

  .button {
    width: 100%;
    align-self: stretch;
  }

  .linkList {
    align-items: flex-start;
  }
}
